//
// Decompiled with: Decompiler.NET, Version=1.3.1.18439, Culture=neutral, PublicKeyToken=null, Version: 1.3.1.18439
// Decompilation Started at: 3/15/2009 10:34:26 PM
// Copyright 2003 - 2004, Jungle Creatures, Inc., All Rights Reserved. 
// Written by Jonathan Pierce, Email: support@junglecreatures.com
//

namespace PatientManagement

{
		
		#region Namespace Import Declarations
		
			using System.Collections;
			using System.ComponentModel;
			using System.Data.Common;
			using System.Data;
			using System.Data.SqlClient;
			using System.Drawing;
			using System;
			using System.Resources;
			using System.Windows.Forms;
			using Utility;
			
		#endregion
		
	public class frmCapThuoc : Form
	
	{
		
		#region Fields
			private frmBANotCapThuoc _fNotToa;
			private Button btLuu;
			private Button btThoat;
			private Button btUpdate;
			private string clrISN;
			private Container components;
			private string con;
			private DataGrid dataGrid1;
			private Database_Com db;
			private Label label1;
			private Label label2;
			private Label label3;
			private Label lbTienThuoc;
			private TextBox txtID;
			private TextBox txtTenBenhNhan;
			private TextBox txtTienThuoc;
		#endregion
		
		#region Constructors
		
			public frmCapThuoc (frmBANotCapThuoc fNotToa)
			
			{
				this.components = ((System.ComponentModel.Container) null);
				this.db = new Database_Com ();
				this._fNotToa = fNotToa;
				this.InitializeComponent ();
				this.con = Connection.ConnectionString ();
				return;
			}
			
		#endregion
		
		#region Methods
		
			private void btLuu_Click (object sender, EventArgs e)
			
			{
				string theString;
				DataSet theDataSet;
				int i;
				long theLong;
				long theLong2;
				int i2;
				string theString2;
				string[] theStringArray;
				string[] theStringArray2;
				SqlDbType[] theSqlDbTypeArray;
				object[] theObjectArray;
				theString = string.Empty;
				theDataSet = ((DataSet) this.dataGrid1.DataSource);
				i = 0;
				goto L_00EC;
				
			L_001E:
				
				{
				}
				theLong = Convert.ToInt64 (theDataSet.Tables[0].Rows[i]["mexQuantityPerUnit"].ToString ());
				theLong2 = Convert.ToInt64 (theDataSet.Tables[0].Rows[i]["mesQuantityInStock"].ToString ());
				if ((theLong2 - theLong) >= ((long) 0))
				{
					goto L_00E8;
				}
				theString2 = theString;
				theStringArray = new string[6];
				theStringArray[0] = theString2;
				theStringArray[1] = "Thu?c ";
				theStringArray[2] = theDataSet.Tables[0].Rows[i]["mexMedicineName"].ToString ();
				theStringArray[3] = " trong kho kh?ng ?? c?p. S? l??ng thu?c trong kho c?n :";
				theStringArray[4] = theLong2.ToString ();
				theStringArray[5] = " \n";
				theString = string.Concat (theStringArray);
				
			L_00E8:
				
				{
				}
				i++;
				
			L_00EC:
				
				{
				}
				if (i < theDataSet.Tables[0].Rows.Count)
				{
					goto L_001E;
				}
				if (theString == string.Empty)
				{
					goto L_0129;
				}
				DialogResult theDialogResult = MessageBox.Show (theString, "Th?ng B?o", MessageBoxButtons.OK, MessageBoxIcon.Hand);
				goto L_021B;
				
			L_0129:
				
				{
				}
				SqlConnection theSqlConnection = this.db.CreateConnections ();
				theStringArray2 = new string[1];
				theStringArray2[0] = "@clrISN";
				theSqlDbTypeArray = new SqlDbType[1];
				theSqlDbTypeArray[0] = SqlDbType.Int;
				theObjectArray = new object[1];
				theObjectArray[0] = this._fNotToa.clrISN;
				this.db.ExecuteStoredProc ("sp_SellMedicine", theStringArray2, theSqlDbTypeArray, theObjectArray);
				DialogResult theDialogResult2 = MessageBox.Show ("Toa thu?c ?? ???c c?p", "C?p Toa Thu?c", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				this.btLuu.Enabled = false;
				i2 = ((int) this.db.ExecuteScalar (string.Concat ("select dbo.fn_Payment_Medicine_Check (", this._fNotToa.clrISN, ")")));
				if (i2 != 1)
				{
					goto L_01F7;
				}
				this.btUpdate.Visible = true;
				this.lbTienThuoc.Visible = true;
				this.txtTienThuoc.Visible = true;
				goto L_021B;
				
			L_01F7:
				
				{
				}
				this.btUpdate.Visible = false;
				this.lbTienThuoc.Visible = false;
				this.txtTienThuoc.Visible = false;
				
			L_021B:
				return;
			}
			
			private void btThoat_Click (object sender, EventArgs e)
			
			{
				string theString;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				theString = Connection.ConnectionString ();
				theSqlDataAdapter = new SqlDataAdapter ("SELECT * FROM vw_PatientHasPrescription", theString);
				theDataSet = new DataSet ();
				int i = theSqlDataAdapter.Fill (theDataSet, "vw_PatientHasPrescription");
				if ((theDataSet != null) && ((theDataSet.Tables.Count != 0) && (theDataSet.Tables["vw_PatientHasPrescription"].Rows.Count != 0)))
				{
					goto L_006C;
				}
				
			L_0051:
				
				{
				}
				DialogResult theDialogResult = MessageBox.Show ("T?t c? c?c toa ?? ???c c?p!", "Kh?ng t?m th?y b?nh nh?n ch?a c?p toa thu?c", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				base.Close ();
				goto L_008F;
				
			L_006C:
				
				{
				}
				this._fNotToa.WindowState = FormWindowState.Normal;
				this._fNotToa.Activate ();
				this._fNotToa.TopMost = true;
				
			L_008F:
				
				{
				}
				theSqlDataAdapter.Dispose ();
				base.Close ();
				return;
			}
			
			private void button1_Click (object sender, EventArgs e)
			
			{
				if (! this.check ())
				{
					goto L_0060;
				}
				
			L_000A:
				
				{
				}
				SqlConnection theSqlConnection = this.db.CreateConnections ();
				int i = this.db.Excu_NonQuery (string.Concat ("Update Invoices set invMedicinePayment = ", this.parseString (this.txtTienThuoc.Text), " where clrISN = ", this._fNotToa.clrISN));
				DialogResult theDialogResult = MessageBox.Show ("?? c?p nh?t ti?n thu?c", "C?p Thu?c", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				
			L_0060:
				return;
			}
			
			private bool check ()
			
			{
				bool theBoolean;
				if (this.txtTienThuoc.Text != "")
				{
					goto L_0031;
				}
				DialogResult theDialogResult = MessageBox.Show ("Vui l?ng nh?p s? ti?n thu?c c?n c?p nh?t!", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
				theBoolean = false;
				goto L_00CE;
				
			L_0031:
				
				{
				}
				if (this.IsNumber (this.parseString (this.txtTienThuoc.Text)))
				{
					goto L_007D;
				}
				DialogResult theDialogResult2 = MessageBox.Show ("Vui l?ng nh?p ki?u s? cho s? ti?n thu?c!", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
				this.txtTienThuoc.Text = "";
				bool theBoolean2 = this.txtTienThuoc.Focus ();
				theBoolean = false;
				goto L_00CE;
				
			L_007D:
				
				{
				}
				if (Convert.ToInt64 (this.parseString (this.txtTienThuoc.Text)) != ((long) 0))
				{
					goto L_00CA;
				}
				DialogResult theDialogResult3 = MessageBox.Show ("Vui l?ng nh?p s? ti?n thu?c l?n h?n 0!", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
				this.txtTienThuoc.Text = "";
				bool theBoolean3 = this.txtTienThuoc.Focus ();
				theBoolean = false;
				goto L_00CE;
				
			L_00CA:
				
				{
				}
				theBoolean = true;
				goto L_00CE;
				
			L_00CE:
				
				{
				}
				return theBoolean;
			}
			
			protected override void Dispose (bool disposing)
			
			{
				if (! disposing)
				{
					goto L_0016;
				}
				if (this.components == null)
				{
					goto L_0016;
				}
				this.components.Dispose ();
				
			L_0016:
				
				{
				}
				base.Dispose (disposing);
				return;
			}
			
			private void frmCapThuoc_Load (object sender, EventArgs e)
			
			{
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				DataTable theDataTable;
				int i;
				this.txtID.Text = this._fNotToa.patID;
				this.txtTenBenhNhan.Text = this._fNotToa.patName;
				this.clrISN = this._fNotToa.clrISN;
				theSqlDataAdapter = new SqlDataAdapter (string.Concat ("SELECT * FROM vw_CheckMedicineStockBeforeExport WHERE clrISN=", this._fNotToa.clrISN, " and mesISN > 0"), this.con);
				theDataSet = new DataSet ();
				int i2 = theSqlDataAdapter.Fill (theDataSet, "MedicineExport");
				theDataTable = theDataSet.Tables["MedicineExport"];
				i = 0;
				goto L_029F;
				
			L_008E:
				
				{
				}
				theDataSet.Tables["MedicineExport"].Rows[i]["mexISN"] = (i + 1);
				if (theDataSet.Tables["MedicineExport"].Rows[i]["mexProductionPerUnit"].ToString () != "0")
				{
					goto L_011B;
				}
				theDataSet.Tables["MedicineExport"].Rows[i]["mexUsage"] = "vi?n";
				
			L_011B:
				
				{
				}
				if (theDataSet.Tables["MedicineExport"].Rows[i]["mexProductionPerUnit"].ToString () != "1")
				{
					goto L_017B;
				}
				theDataSet.Tables["MedicineExport"].Rows[i]["mexUsage"] = "?ng";
				
			L_017B:
				
				{
				}
				if (theDataSet.Tables["MedicineExport"].Rows[i]["mexProductionPerUnit"].ToString () != "2")
				{
					goto L_01DB;
				}
				theDataSet.Tables["MedicineExport"].Rows[i]["mexUsage"] = "chai";
				
			L_01DB:
				
				{
				}
				if (theDataSet.Tables["MedicineExport"].Rows[i]["mexProductionPerUnit"].ToString () != "3")
				{
					goto L_023B;
				}
				theDataSet.Tables["MedicineExport"].Rows[i]["mexUsage"] = "g?i";
				
			L_023B:
				
				{
				}
				if (theDataSet.Tables["MedicineExport"].Rows[i]["mexProductionPerUnit"].ToString () != "4")
				{
					goto L_029B;
				}
				theDataSet.Tables["MedicineExport"].Rows[i]["mexUsage"] = "tu?p";
				
			L_029B:
				
				{
				}
				i++;
				
			L_029F:
				
				{
				}
				if (i < theDataSet.Tables["MedicineExport"].Rows.Count)
				{
					goto L_008E;
				}
				this.dataGrid1.DataSource = theDataSet;
				this.dataGrid1.SetDataBinding (theDataSet, "MedicineExport");
				this.dataGrid1.TableStyles.Clear ();
				this.loadDataGrid ();
				return;
			}
			
			private void ID_Validate (object sender, KeyPressEventArgs e)
			
			{
				if (char.IsNumber (e.KeyChar))
				{
					goto L_0027;
				}
				if (e.KeyChar == '\u0008')
				{
					goto L_0027;
				}
				if (e.KeyChar == '\r')
				{
					goto L_0027;
				}
				e.Handled = true;
				
			L_0027:
				
				{
				}
				goto L_0029;
				
			L_0029:
				return;
			}
			
			private void InitializeComponent ()
			
			{
				ResourceManager theResourceManager;
				Control[] theControlArray;
				theResourceManager = new ResourceManager (typeof (frmCapThuoc));
				this.dataGrid1 = new DataGrid ();
				this.label3 = new Label ();
				this.txtTenBenhNhan = new TextBox ();
				this.txtID = new TextBox ();
				this.label2 = new Label ();
				this.label1 = new Label ();
				this.btThoat = new Button ();
				this.btLuu = new Button ();
				this.btUpdate = new Button ();
				this.txtTienThuoc = new TextBox ();
				this.lbTienThuoc = new Label ();
				((ISupportInitialize) this.dataGrid1).BeginInit ();
				base.SuspendLayout ();
				this.dataGrid1.BackgroundColor = SystemColors.ActiveCaptionText;
				this.dataGrid1.CaptionVisible = false;
				this.dataGrid1.DataMember = "";
				this.dataGrid1.HeaderForeColor = SystemColors.ControlText;
				this.dataGrid1.Location = new Point (16, 104);
				this.dataGrid1.Name = "dataGrid1";
				this.dataGrid1.ReadOnly = true;
				this.dataGrid1.Size = new System.Drawing.Size (528, 224);
				this.dataGrid1.TabIndex = 3;
				this.label3.Font = new System.Drawing.Font ("Verdana", 12F, FontStyle.Bold, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label3.ForeColor = Color.MediumBlue;
				this.label3.Location = new Point (224, 11);
				this.label3.Name = "label3";
				this.label3.Size = new System.Drawing.Size (113, 23);
				this.label3.TabIndex = 79;
				this.label3.Text = "Toa Thu?c";
				this.label3.TextAlign = ContentAlignment.MiddleCenter;
				this.txtTenBenhNhan.BorderStyle = BorderStyle.FixedSingle;
				this.txtTenBenhNhan.Location = new Point (194, 71);
				this.txtTenBenhNhan.Name = "txtTenBenhNhan";
				this.txtTenBenhNhan.Size = new System.Drawing.Size (205, 23);
				this.txtTenBenhNhan.TabIndex = 2;
				this.txtTenBenhNhan.Text = "";
				this.txtID.BorderStyle = BorderStyle.FixedSingle;
				this.txtID.Location = new Point (194, 47);
				this.txtID.Name = "txtID";
				this.txtID.Size = new System.Drawing.Size (205, 23);
				this.txtID.TabIndex = 1;
				this.txtID.Text = "";
				this.label2.Location = new Point (108, 74);
				this.label2.Name = "label2";
				this.label2.Size = new System.Drawing.Size (84, 23);
				this.label2.TabIndex = 81;
				this.label2.Text = "B?nh nh?n:";
				this.label1.Location = new Point (141, 50);
				this.label1.Name = "label1";
				this.label1.Size = new System.Drawing.Size (60, 23);
				this.label1.TabIndex = 80;
				this.label1.Text = "S? ID:";
				this.btThoat.FlatStyle = FlatStyle.Popup;
				this.btThoat.Location = new Point (464, 334);
				this.btThoat.Name = "btThoat";
				this.btThoat.Size = new System.Drawing.Size (80, 23);
				this.btThoat.TabIndex = 8;
				this.btThoat.Text = "Tho?t";
				this.btThoat.Click += new EventHandler (this.btThoat_Click);
				this.btLuu.FlatStyle = FlatStyle.Popup;
				this.btLuu.Location = new Point (366, 334);
				this.btLuu.Name = "btLuu";
				this.btLuu.Size = new System.Drawing.Size (88, 23);
				this.btLuu.TabIndex = 4;
				this.btLuu.Text = "C?p Thu?c";
				this.btLuu.Click += new EventHandler (this.btLuu_Click);
				this.btUpdate.FlatStyle = FlatStyle.Popup;
				this.btUpdate.Location = new Point (264, 334);
				this.btUpdate.Name = "btUpdate";
				this.btUpdate.Size = new System.Drawing.Size (88, 23);
				this.btUpdate.TabIndex = 7;
				this.btUpdate.Text = "Ti?n Thu?c";
				this.btUpdate.Visible = false;
				this.btUpdate.Click += new EventHandler (this.button1_Click);
				this.txtTienThuoc.BorderStyle = BorderStyle.FixedSingle;
				this.txtTienThuoc.Location = new Point (151, 333);
				this.txtTienThuoc.Name = "txtTienThuoc";
				this.txtTienThuoc.Size = new System.Drawing.Size (104, 23);
				this.txtTienThuoc.TabIndex = 6;
				this.txtTienThuoc.Text = "";
				this.txtTienThuoc.Visible = false;
				this.txtTienThuoc.Leave += new EventHandler (this.txtTienThuoc_Leave);
				this.lbTienThuoc.Location = new Point (56, 334);
				this.lbTienThuoc.Name = "lbTienThuoc";
				this.lbTienThuoc.Size = new System.Drawing.Size (88, 23);
				this.lbTienThuoc.TabIndex = 5;
				this.lbTienThuoc.Text = "Ti?n Thu?c:";
				this.lbTienThuoc.Visible = false;
				this.AutoScaleBaseSize = new System.Drawing.Size (7, 16);
				base.ClientSize = new System.Drawing.Size (558, 363);
				theControlArray = new Control[11];
				theControlArray[0] = ((Control) this.lbTienThuoc);
				theControlArray[1] = ((Control) this.txtTienThuoc);
				theControlArray[2] = ((Control) this.btUpdate);
				theControlArray[3] = ((Control) this.btThoat);
				theControlArray[4] = ((Control) this.btLuu);
				theControlArray[5] = ((Control) this.txtTenBenhNhan);
				theControlArray[6] = ((Control) this.txtID);
				theControlArray[7] = ((Control) this.label2);
				theControlArray[8] = ((Control) this.label1);
				theControlArray[9] = ((Control) this.label3);
				theControlArray[10] = ((Control) this.dataGrid1);
				base.Controls.AddRange (theControlArray);
				this.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
				base.Icon = ((System.Drawing.Icon) theResourceManager.GetObject ("$this.Icon"));
				base.MaximizeBox = false;
				base.MinimizeBox = false;
				base.Name = "frmCapThuoc";
				base.StartPosition = FormStartPosition.CenterScreen;
				this.Text = "Ph?t Thu?c";
				base.Load += new EventHandler (this.frmCapThuoc_Load);
				((ISupportInitialize) this.dataGrid1).EndInit ();
				base.ResumeLayout (false);
				return;
			}
			
			public bool IsNumber (string text)
			
			{
				bool theBoolean;
				
			L_0000:
				try
				{
					long theLong = Convert.ToInt64 (text);
					theBoolean = true;
				}
				catch
				{
					
				L_000B:
					
					{
					}
					theBoolean = false;
				}
				
			L_0010:
				
				{
				}
				return theBoolean;
			}
			
			public void loadDataGrid ()
			
			{
				DataGridTableStyle theDataGridTableStyle;
				DataGridTextBoxColumn theDataGridTextBoxColumn;
				DataGridTextBoxColumn theDataGridTextBoxColumn2;
				DataGridTextBoxColumn theDataGridTextBoxColumn3;
				DataGridTextBoxColumn theDataGridTextBoxColumn4;
				DataGridTextBoxColumn theDataGridTextBoxColumn5;
				theDataGridTableStyle = new DataGridTableStyle ();
				theDataGridTableStyle.MappingName = "MedicineExport";
				theDataGridTableStyle.AlternatingBackColor = Color.AliceBlue;
				theDataGridTableStyle.HeaderForeColor = Color.Maroon;
				theDataGridTableStyle.GridLineColor = Color.CornflowerBlue;
				theDataGridTextBoxColumn = new DataGridTextBoxColumn ();
				theDataGridTextBoxColumn.MappingName = "mexISN";
				theDataGridTextBoxColumn.HeaderText = "STT";
				theDataGridTextBoxColumn.Width = 100;
				theDataGridTextBoxColumn.NullText = string.Empty;
				int i = theDataGridTableStyle.GridColumnStyles.Add (((DataGridColumnStyle) theDataGridTextBoxColumn));
				theDataGridTextBoxColumn2 = new DataGridTextBoxColumn ();
				theDataGridTextBoxColumn2.MappingName = "mexMedicineName";
				theDataGridTextBoxColumn2.HeaderText = "T?n Thu?c";
				theDataGridTextBoxColumn2.Width = 185;
				theDataGridTextBoxColumn2.NullText = string.Empty;
				int i2 = theDataGridTableStyle.GridColumnStyles.Add (((DataGridColumnStyle) theDataGridTextBoxColumn2));
				theDataGridTextBoxColumn3 = new DataGridTextBoxColumn ();
				theDataGridTextBoxColumn3.MappingName = "mexQuantityPerUnit";
				theDataGridTextBoxColumn3.HeaderText = "S? L??ng";
				theDataGridTextBoxColumn3.Width = 120;
				theDataGridTextBoxColumn3.NullText = string.Empty;
				theDataGridTextBoxColumn3.Alignment = HorizontalAlignment.Center;
				int i3 = theDataGridTableStyle.GridColumnStyles.Add (((DataGridColumnStyle) theDataGridTextBoxColumn3));
				theDataGridTextBoxColumn4 = new DataGridTextBoxColumn ();
				theDataGridTextBoxColumn4.MappingName = "mexUsage";
				theDataGridTextBoxColumn4.HeaderText = "??n V?";
				theDataGridTextBoxColumn4.Width = 120;
				theDataGridTextBoxColumn4.NullText = string.Empty;
				theDataGridTextBoxColumn4.Alignment = HorizontalAlignment.Center;
				int i4 = theDataGridTableStyle.GridColumnStyles.Add (((DataGridColumnStyle) theDataGridTextBoxColumn4));
				theDataGridTextBoxColumn5 = new DataGridTextBoxColumn ();
				theDataGridTextBoxColumn5.MappingName = "mesQuantityInStock";
				theDataGridTextBoxColumn5.HeaderText = "";
				theDataGridTextBoxColumn5.Width = 0;
				theDataGridTextBoxColumn5.NullText = string.Empty;
				theDataGridTextBoxColumn5.Alignment = HorizontalAlignment.Center;
				int i5 = theDataGridTableStyle.GridColumnStyles.Add (((DataGridColumnStyle) theDataGridTextBoxColumn5));
				int i6 = this.dataGrid1.TableStyles.Add (theDataGridTableStyle);
				return;
			}
			
			public string parseString (string Tien)
			
			{
				string theString;
				ArrayList theArrayList;
				string theString2;
				int i;
				string theString3;
				string[] theStringArray;
				char[] theCharArray;
				int i2;
				theString = string.Empty;
				theArrayList = new ArrayList ();
				theCharArray = new char[1];
				theCharArray[0] = '\u002E';
				theStringArray = Tien.Split (theCharArray);
				i2 = 0;
				goto L_003D;
				
			L_0029:
				
				{
				}
				theString2 = theStringArray[i2];
				int i3 = theArrayList.Add (theString2);
				i2++;
				
			L_003D:
				
				{
				}
				if (i2 < theStringArray.Length)
				{
					goto L_0029;
				}
				i = 0;
				goto L_0060;
				
			L_0049:
				
				{
				}
				theString = string.Concat (theString, theArrayList[i].ToString ());
				i++;
				
			L_0060:
				
				{
				}
				if (i < theArrayList.Count)
				{
					goto L_0049;
				}
				theString3 = theString;
				goto L_006E;
				
			L_006E:
				
				{
				}
				return theString3;
			}
			
			public string parseTien (string tien)
			
			{
				ArrayList theArrayList;
				int i;
				char[] theCharArray;
				ArrayList theArrayList2;
				int i2;
				int i3;
				int i4;
				string theString;
				int i5;
				string theString2;
				theArrayList = new ArrayList ();
				i = 3;
				goto L_001C;
				
			L_000A:
				
				{
				}
				int i6 = theArrayList.Add (i.ToString ());
				i += 3;
				
			L_001C:
				
				{
				}
				if (i < 100)
				{
					goto L_000A;
				}
				theCharArray = tien.ToCharArray ();
				theArrayList2 = new ArrayList ();
				i2 = 1;
				i3 = theCharArray.Length;
				goto L_009B;
				
			L_0038:
				
				{
				}
				int i7 = theArrayList2.Add (theCharArray[(i3 - 1)].ToString ());
				i4 = 0;
				goto L_0085;
				
			L_0053:
				
				{
				}
				if (theArrayList[i4].ToString () != i2.ToString ())
				{
					goto L_007F;
				}
				if (i3 <= 1)
				{
					goto L_007F;
				}
				int i8 = theArrayList2.Add (".");
				
			L_007F:
				
				{
				}
				i4++;
				
			L_0085:
				
				{
				}
				if (i4 < theArrayList.Count)
				{
					goto L_0053;
				}
				i2++;
				i3--;
				
			L_009B:
				
				{
				}
				if ((i3 <= theCharArray.Length) && (i3 > 0))
				{
					goto L_0038;
				}
				
			L_00A7:
				
				{
				}
				theString = string.Empty;
				i5 = theArrayList2.Count;
				goto L_00D6;
				
			L_00B8:
				
				{
				}
				theString = string.Concat (theString, theArrayList2[((int) (i5 - 1))].ToString ());
				i5--;
				
			L_00D6:
				
				{
				}
				if (i5 > theArrayList2.Count)
				{
					goto L_00E5;
				}
				if (i5 > 0)
				{
					goto L_00B8;
				}
				
			L_00E5:
				
				{
				}
				theString2 = theString;
				goto L_00EB;
				
			L_00EB:
				
				{
				}
				return theString2;
			}
			
			private void txtTienThuoc_Leave (object sender, EventArgs e)
			
			{
				if (! this.check ())
				{
					goto L_0040;
				}
				this.txtTienThuoc.Text = this.parseString (this.txtTienThuoc.Text);
				this.txtTienThuoc.Text = this.parseTien (this.txtTienThuoc.Text);
				
			L_0040:
				return;
			}
			
		#endregion
	}
	
}

